package com.ruoyi.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 商品评价对象 pro_comment
 * 
 * @author Chicken Brother
 * @date 2023-05-18
 */
public class Comment extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价的主键ID */
    private Long id;

    /** 关联的评价商品的ID */
    @Excel(name = "关联的评价商品的ID")
    private Long goodsId;

    /** 上传的评价图片 */
    @Excel(name = "上传的评价图片")
    private String img;

    /** 评价 */
    @Excel(name = "评价")
    private String comment;

    /** 点赞数
 */
    @Excel(name = "点赞数 ")
    private Long upLike;

    /** 好评星数 */
    @Excel(name = "好评星数")
    private Long esteem;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setUpLike(Long upLike) 
    {
        this.upLike = upLike;
    }

    public Long getUpLike() 
    {
        return upLike;
    }
    public void setEsteem(Long esteem) 
    {
        this.esteem = esteem;
    }

    public Long getEsteem() 
    {
        return esteem;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("img", getImg())
            .append("comment", getComment())
            .append("upLike", getUpLike())
            .append("esteem", getEsteem())
            .append("parentId", getParentId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
